/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.nms.webservice;

import com.nms.crm.management.CRMManagementInt;
import com.nms.crm.management.imp.CRMManagement;
import com.nms.entities.Customers;
import com.nms.errors.ErrorClass;
import java.util.Date;
import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebService;

/**
 *
 * @author eisa
 */
@WebService
public class CRMManagemenService {

    private CRMManagementInt crmManagementInt;

    public CRMManagemenService() {
        crmManagementInt = new CRMManagement();
    }

    @WebMethod(operationName = "addCustomer")
    public ErrorClass addCustomer(@WebParam(name = "customerObject") Customers obj) {
    return crmManagementInt.addCustomer(obj);    
    }
}
